<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/mytable/jrtable/jxs_register.js此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/mytable/jrtable/jxs_register.js";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        setup() {
            const table = ref({
                key: 'jxs_register_id',
                footer: "Foots",
                cnName: '经销商签到',
                name: 'jrtable/jxs_register',
                url: "/jxs_register/",
                sortName: "jxs_register_id"
            });
            const editFormFields = ref({});
            const editFormOptions = ref([]);
            const searchFormFields = ref({"zanqu":"","jxs_name":"","xm_name":"","gangwe":"","phone":"","CreateDate":[null,null],"Creator":""});
            const searchFormOptions = ref([[{"title":"战区","field":"zanqu","type":"like"},{"title":"经销商名称","field":"jxs_name","type":"like"}],[{"title":"姓名","field":"xm_name","type":"like"},{"title":"岗位","field":"gangwe","type":"like"}],[{"title":"电话","field":"phone","type":"like"},{"title":"创建时间","field":"CreateDate","type":"range"}],[{"title":"创建人","field":"Creator"}]]);
            const columns = ref([{field:'jxs_register_id',title:'培训签订表',type:'guid',width:110,hidden:true,require:true,align:'left'},
                       {field:'zanqu',title:'战区',type:'string',width:220,align:'left',sort:true},
                       {field:'jxs_name',title:'经销商名称',type:'string',width:220,align:'left'},
                       {field:'xm_name',title:'姓名',type:'string',width:220,align:'left'},
                       {field:'gangwe',title:'岗位',type:'string',width:220,align:'left'},
                       {field:'phone',title:'电话',type:'string',width:220,align:'left'},
                       {field:'CreateDate',title:'创建时间',type:'datetime',width:150,align:'left',sort:true},
                       {field:'Creator',title:'创建人',type:'string',width:130,hidden:true,align:'left'}]);
            const detail = ref({
                cnName: "#detailCnName",
                table: "#detailTable",
                columns: [],
                sortName: "",
                key: ""
            });
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
            };
        },
    });
</script>
